package shanshuitiancheng.news;

/**
 * Created by cch on 2016/6/21.
 */
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;

public class WebViewActivity extends Activity {
    //当点击listview中的每行条目时候，跳转链接网页显示条目中的信息
    @Override
    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.web);
//        Intent intent = getIntent();
//        String url = intent.getStringExtra("url");
//        WebView wb = (WebView) findViewById(R.id.wb);
//        wb.loadUrl(url);
         super.onCreate(savedInstanceState);
        setContentView(R.layout.web);
        Intent intent = getIntent();
        String url = intent.getStringExtra("url");
        WebView wb = (WebView) findViewById(R.id.wb);
         wb.loadUrl(url);
    }
}
